#ifndef ENEMY_4_H
#define ENEMY_4_H

#include <QtGui>
#include "collisia_control.h"
#include "cash.h"

class ENEMY_4 : public QGraphicsObject
{
    Q_OBJECT

    QPainterPath *border;
    QPixmap *im;

    QGraphicsItemAnimation *anim_enemy;
    QTimeLine *enemy_time_line;

    QPoint respaun_point;

    bool go_to_left;

    int timer_id;

    QPoint stvol_1_go_to_left;
    QPoint stvol_2_go_to_left;

    QPoint stvol_1_go_to_right;
    QPoint stvol_2_go_to_right;

    int counter_for_fire;

    int fire_now_1;
    int fire_now_2;
    int fire_now_3;

    COLLISIA_CONTROL *collisia_control;

    int point;

    SOUND_POWER *go;

public:

    explicit ENEMY_4(SCENE *scene, QTimeLine *global_tl, CASH *cash);

    QPainterPath shape() const;

    QRectF boundingRect() const;

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *);

    void timerEvent(QTimerEvent *);

    ~ENEMY_4();

    int type() const;
    
signals:
    
    void Fire(QPoint oba);

    void Kill_Me_Please(QGraphicsObject *);

public slots:
    
    void Damage_Detected(QPointF a,int d);


};

#endif // ENEMY_4_H
